package com.lang8.util.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class WebHolder {
	public static final ThreadLocal<HttpServletRequest> requestTL = new ThreadLocal<HttpServletRequest>();
	public static final ThreadLocal<HttpServletResponse> responsetTL = new ThreadLocal<HttpServletResponse>();
//	private static WebHolder instance = new WebHolder();
//	private static boolean isInit = false;
//	private ThreadLocal<HttpServletRequest> requestTL = new ThreadLocal<HttpServletRequest>();
//	private WebHolder(){}
//	public static WebHolder getInstance(){
//		if (!isInit) {
//			synchronized (WebHolder.class) {
//				if (!isInit) {
//					init();
//					isInit = true;
//				}
//			}
//		}
//		return instance;
//	}
//	public static void init(){
//		
//	}
//	public static void setRequest(HttpServletRequest request){
//		getInstance().requestTL.set(request);
//	}
//	public static HttpServletRequest getRequest(){
//		return getInstance().requestTL.get();
//	}
}
